<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <h:body>
        <ui:composition template="./layout/page.xhtml">
            <ui:define name="top">               
            </ui:define>

            <ui:define name="content">
                <h2>Авторизация пользователя</h2>
                <hr />
                <h:form id="frmLogin">
                    <p:growl id="messageGeneral" showDetail="true" sticky="false"/>
                    <h:panelGrid columns="2">
                        <p:outputLabel value="Пользователь" for="txtLogin"/>
                        <p:inputText id="txtLogin" size="40" value="#{mbSLogin.login}"/>
                        <p:outputLabel value="Пароль" for="txtPassword"/>
                        <p:password id="txtPassword" size="40" value="#{mbSLogin.password}"/>                        
                            <h:panelGroup style="display:block; text-align:left">
                                <p:button value="Регистрация" outcome="/employee/registration" icon="ui-icon-pencil"/>                                                             
                            </h:panelGroup>
                            <h:panelGroup style="display:block; text-align:right">
                                <p:commandButton value="Вход" ajax="false" action="#{mbSLogin.login()}" /> 
                            </h:panelGroup>
                    </h:panelGrid>
                </h:form>
            </ui:define>
            
            <ui:define name="bottom">
            </ui:define>

        </ui:composition>
    </h:body>
</html>

